import { Map } from 'immutable'

// 定义数据时使用 immutable
const  reducer = (state = Map({
  kindList: []
}), action) => {
  console.log('payload',action.payload)
  switch (action.type) {
    case 'CHANGE_KIND_LIST':
      return state.set('kindList', action.payload)
    default:
      return state
  }
}
export default reducer